var dbConnection = require('mysql');
/* 引入express框架 */
const express = require('express');
const app = express();
 
/* 引入cors */
const cors = require('cors');
app.use(cors());
 
/* 引入body-parser */
const bodyParser = require('body-parser');
const e = require('express');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.listen(4567, () => {
    console.log('——————————服务已启动456——————————');
})
app.get('/api/user', (req, res) => {
    res.json({name:'我是小高user'})
});